package com.woniuxy.car.commodity.service.core.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 商品评论表
 * </p>
 *
 * @author awz
 * @since 2022-03-01
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("kc_commodity_comment")
@ApiModel(value = "CommodityComment对象", description = "商品评论表")
public class CommodityComment implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("商品评价id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("评价内容")
    private String content;

    @ApiModelProperty("订单id")
    private Integer orderId;

    @ApiModelProperty("用户id")
    private Integer userId;

    @ApiModelProperty("评价星级")
    private Integer star;

    @ApiModelProperty("阅读数量")
    private Integer readCount;

    @ApiModelProperty("点赞数量")
    private Integer approveCount;

    @ApiModelProperty("回复数量")
    private Integer replyCount;

    @ApiModelProperty("用户ip")
    private String userIp;

    @ApiModelProperty("商品id")
    private Integer commodityId;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(select = false)
    @TableLogic
    @ApiModelProperty("逻辑删除（0未删除，1已删除）")
    private int isDelete;
}
